﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_Quota_Create" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {

            $(".TextBox:first").focus();

        });

    }

    function setProductCode(value) {
        $("#<%=txtProductCode.ClientID()%>").val(value);

    }      
</script>
<asp:UpdatePanel ID="uplCategory" runat="server">
    <contenttemplate>
<div  class="BoxField">

 <div  class="HeadTitle">
	    <h3><asp:Label ID="Label5"  runat="server" Text="TẠO MỚI PHÂN BỔ HÀNG " /></h3>
    </div>
    <div class="DivRequired">
          <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
    </div>
    <div class="Error">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />        
    </div>

    <div style="clear: both">
    </div>



		
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblParentid" CssClass="TextLabel" runat="server" Text="Kho:" />
		</div>
		<div  class="DivTextBox" >
            <asp:DropDownList ID="ddlStoge" CssClass="TextBox"   runat="server">
            </asp:DropDownList>
		    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="ddlStoge" Display="None" ErrorMessage="Kho là bắt buộc." 
                ForeColor="#FF3300" InitialValue="0"></asp:RequiredFieldValidator>
		</div>
		</div>
        <div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Mã sản phẩm:" />
		</div>
		<div  class="DivTextBox" >
            <asp:TextBox ID="txtProductCode" CssClass="TextBox" runat="server" Text="" /><asp:HyperLink ID="hplSearch" runat="server" Text="Chọn" CssClass="thickbox"></asp:HyperLink>
		    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtProductCode" Display="None" 
                ErrorMessage="Mã sản phẩm là bắt buộc." ForeColor="#FF3300"></asp:RequiredFieldValidator>
		</div>
		</div>
        <div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Sản phẩm (phân bổ):" />
		</div>
		<div  class="DivTextBox" >
             <asp:TextBox ID="txtTotal" CssClass="TextBox" runat="server" Text="" />

		    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtTotal" Display="None" 
                ErrorMessage="Tổng số sản phẩm là bắt buộc." ForeColor="#FF3300"></asp:RequiredFieldValidator>
		     <asp:RangeValidator ID="RangeValidator2" runat="server" 
                 ControlToValidate="txtTotal" Display="None" 
                 ErrorMessage="Tổng số sản phẩm không hợp lệ." ForeColor="Red" 
                 MaximumValue="999999999" MinimumValue="0" Type="Integer"></asp:RangeValidator>
		</div>
		</div>
		<div class="DivRow">
		<div class="DivLabel" >&nbsp;&nbsp;&nbsp;</div>
		<div class="DivTextBox" >
			<asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
			<asp:Button ID="btnHuy" CausesValidation="false" runat="server" Text=" Hủy " CssClass="btn" />&nbsp;
		</div>
		</div>

</div>
<div style="display: none">
<asp:HiddenField ID="hidID" Value="0" runat="server" /></div>
</contenttemplate>
</asp:UpdatePanel>
